﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000ABF RID: 2751
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MakeMissionDrinkScRsp : IMessage<MakeMissionDrinkScRsp>, IMessage, IEquatable<MakeMissionDrinkScRsp>, IDeepCloneable<MakeMissionDrinkScRsp>, IBufferMessage
	{
		// Token: 0x170022B4 RID: 8884
		// (get) Token: 0x06007B0A RID: 31498 RVA: 0x00148A97 File Offset: 0x00146C97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MakeMissionDrinkScRsp> Parser
		{
			get
			{
				return MakeMissionDrinkScRsp._parser;
			}
		}

		// Token: 0x170022B5 RID: 8885
		// (get) Token: 0x06007B0B RID: 31499 RVA: 0x00148A9E File Offset: 0x00146C9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MakeMissionDrinkScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022B6 RID: 8886
		// (get) Token: 0x06007B0C RID: 31500 RVA: 0x00148AB0 File Offset: 0x00146CB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MakeMissionDrinkScRsp.Descriptor;
			}
		}

		// Token: 0x06007B0D RID: 31501 RVA: 0x00148AB7 File Offset: 0x00146CB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeMissionDrinkScRsp()
		{
		}

		// Token: 0x06007B0E RID: 31502 RVA: 0x00148AC0 File Offset: 0x00146CC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeMissionDrinkScRsp(MakeMissionDrinkScRsp other) : this()
		{
			this.isSave_ = other.isSave_;
			this.isSucc_ = other.isSucc_;
			this.customDrink_ = ((other.customDrink_ != null) ? other.customDrink_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007B0F RID: 31503 RVA: 0x00148B24 File Offset: 0x00146D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MakeMissionDrinkScRsp Clone()
		{
			return new MakeMissionDrinkScRsp(this);
		}

		// Token: 0x170022B7 RID: 8887
		// (get) Token: 0x06007B10 RID: 31504 RVA: 0x00148B2C File Offset: 0x00146D2C
		// (set) Token: 0x06007B11 RID: 31505 RVA: 0x00148B34 File Offset: 0x00146D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSave
		{
			get
			{
				return this.isSave_;
			}
			set
			{
				this.isSave_ = value;
			}
		}

		// Token: 0x170022B8 RID: 8888
		// (get) Token: 0x06007B12 RID: 31506 RVA: 0x00148B3D File Offset: 0x00146D3D
		// (set) Token: 0x06007B13 RID: 31507 RVA: 0x00148B45 File Offset: 0x00146D45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSucc
		{
			get
			{
				return this.isSucc_;
			}
			set
			{
				this.isSucc_ = value;
			}
		}

		// Token: 0x170022B9 RID: 8889
		// (get) Token: 0x06007B14 RID: 31508 RVA: 0x00148B4E File Offset: 0x00146D4E
		// (set) Token: 0x06007B15 RID: 31509 RVA: 0x00148B56 File Offset: 0x00146D56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PNLHADCBNMN CustomDrink
		{
			get
			{
				return this.customDrink_;
			}
			set
			{
				this.customDrink_ = value;
			}
		}

		// Token: 0x170022BA RID: 8890
		// (get) Token: 0x06007B16 RID: 31510 RVA: 0x00148B5F File Offset: 0x00146D5F
		// (set) Token: 0x06007B17 RID: 31511 RVA: 0x00148B67 File Offset: 0x00146D67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007B18 RID: 31512 RVA: 0x00148B70 File Offset: 0x00146D70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MakeMissionDrinkScRsp);
		}

		// Token: 0x06007B19 RID: 31513 RVA: 0x00148B80 File Offset: 0x00146D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MakeMissionDrinkScRsp other)
		{
			return other != null && (other == this || (this.IsSave == other.IsSave && this.IsSucc == other.IsSucc && object.Equals(this.CustomDrink, other.CustomDrink) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007B1A RID: 31514 RVA: 0x00148BF0 File Offset: 0x00146DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsSave)
			{
				num ^= this.IsSave.GetHashCode();
			}
			if (this.IsSucc)
			{
				num ^= this.IsSucc.GetHashCode();
			}
			if (this.customDrink_ != null)
			{
				num ^= this.CustomDrink.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007B1B RID: 31515 RVA: 0x00148C77 File Offset: 0x00146E77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007B1C RID: 31516 RVA: 0x00148C7F File Offset: 0x00146E7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007B1D RID: 31517 RVA: 0x00148C88 File Offset: 0x00146E88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.customDrink_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.CustomDrink);
			}
			if (this.IsSucc)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.IsSucc);
			}
			if (this.IsSave)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.IsSave);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007B1E RID: 31518 RVA: 0x00148D1C File Offset: 0x00146F1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsSave)
			{
				num += 2;
			}
			if (this.IsSucc)
			{
				num += 2;
			}
			if (this.customDrink_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CustomDrink);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007B1F RID: 31519 RVA: 0x00148D8C File Offset: 0x00146F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MakeMissionDrinkScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsSave)
			{
				this.IsSave = other.IsSave;
			}
			if (other.IsSucc)
			{
				this.IsSucc = other.IsSucc;
			}
			if (other.customDrink_ != null)
			{
				if (this.customDrink_ == null)
				{
					this.CustomDrink = new PNLHADCBNMN();
				}
				this.CustomDrink.MergeFrom(other.CustomDrink);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007B20 RID: 31520 RVA: 0x00148E1C File Offset: 0x0014701C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007B21 RID: 31521 RVA: 0x00148E28 File Offset: 0x00147028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 34U)
					{
						if (this.customDrink_ == null)
						{
							this.CustomDrink = new PNLHADCBNMN();
						}
						input.ReadMessage(this.CustomDrink);
						continue;
					}
					if (num == 72U)
					{
						this.IsSucc = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.IsSave = input.ReadBool();
						continue;
					}
					if (num == 104U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002F07 RID: 12039
		private static readonly MessageParser<MakeMissionDrinkScRsp> _parser = new MessageParser<MakeMissionDrinkScRsp>(() => new MakeMissionDrinkScRsp());

		// Token: 0x04002F08 RID: 12040
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F09 RID: 12041
		public const int IsSaveFieldNumber = 12;

		// Token: 0x04002F0A RID: 12042
		private bool isSave_;

		// Token: 0x04002F0B RID: 12043
		public const int IsSuccFieldNumber = 9;

		// Token: 0x04002F0C RID: 12044
		private bool isSucc_;

		// Token: 0x04002F0D RID: 12045
		public const int CustomDrinkFieldNumber = 4;

		// Token: 0x04002F0E RID: 12046
		private PNLHADCBNMN customDrink_;

		// Token: 0x04002F0F RID: 12047
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04002F10 RID: 12048
		private uint retcode_;
	}
}
